-- GENERATED SPELL FOR [Ridgespine Horror] --


function spell0_20998(pUnit, Event) --@Toxic Spit,n/a--
pUnit:FullCastSpellOnTarget(7951,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20998', 2500, 1)
end

function spell1_20998(pUnit, Event) --@Web,n/a--
pUnit:FullCastSpellOnTarget(745,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20998', 5343, 1)
end

function Sorts_20998(pUnit, Event)
local choix_sorts_20998 = math.random(0, 1)
if choix_sorts_20998 == 0 then
pUnit:RegisterEvent('spell0_20998', 1, 1)
end
if choix_sorts_20998 == 1 then
pUnit:RegisterEvent('spell1_20998', 1, 1)
end
end

function mob20998_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20998', math.random(1500, 3000), 1)
end

function mob20998_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20998_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20998_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20998, 1, 'mob20998_Action')
RegisterUnitEvent(20998, 2, 'mob20998_Leave')
RegisterUnitEvent(20998, 3, 'mob20998_Kill')
RegisterUnitEvent(20998, 4, 'mob20998_Die')
